/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/idenger">idenger</a> All rights reserved.
 */
package com.idenger.modules.edu.service.practice;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.idenger.common.persistence.Page;
import com.idenger.common.service.CrudService;
import com.idenger.modules.edu.entity.course.CourseVideoAndPracticeDto;
import com.idenger.modules.edu.entity.practice.EduPractice;
import com.idenger.modules.edu.dao.practice.EduPracticeDao;

/**
 * 练习Service
 * @author 兰正军
 * @version 2017-11-30
 */
@Service
@Transactional(readOnly = true)
public class EduPracticeService extends CrudService<EduPracticeDao, EduPractice> {

	public EduPractice get(String id) {
		return super.get(id);
	}
	
	public List<EduPractice> findList(EduPractice eduPractice) {
		return super.findList(eduPractice);
	}
	
	public List<CourseVideoAndPracticeDto> findEduPracticeBysectionId(String sectionId) {
		return dao.findEduPracticeBysectionId(sectionId);
	}
	
	
	
	public Page<EduPractice> findPage(Page<EduPractice> page, EduPractice eduPractice) {
		return super.findPage(page, eduPractice);
	}
	
	@Transactional(readOnly = false)
	public void save(EduPractice eduPractice) {
		super.save(eduPractice);
	}
	
	@Transactional(readOnly = false)
	public void delete(EduPractice eduPractice) {
		super.delete(eduPractice);
	}
	
}